package com.example.apidocserver.infrastructure.util.pdf;

import com.itextpdf.text.Font;
import com.itextpdf.text.Paragraph;

/**
 * 段落工具
 *
 * @author xyqlg
 */
public class PdfParagraphUtil {
    public static Font font = PdfFontUtil.getFont("HYSongYunLangHeiW-1");

    public static Paragraph getParagraph(String pStr) {
        return getParagraph(pStr, font);
    }

    public static Paragraph getParagraph(String pStr, Font font) {
        Paragraph paragraph = new Paragraph(pStr, font);
        paragraph.setFirstLineIndent(24);
        return paragraph;
    }
}
